﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WechatModule.API;

namespace WanWebApplication.Wechat
{
    public partial class SendMsgToUser : System.Web.UI.Page
    {
        public string AccessToken
        {
            get
            {
                return WechatBaseAPI.GetAccessToken();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["cmd"] == "test")
            {
                var msg = Request.Form;
            }

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = TemplateMsgAPI.SendTo();
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Label2.Text = TemplateMsgAPI.GetTemplate();
        }

        protected void 设置行业_Click(object sender, EventArgs e)
        {
            Label3.Text = TemplateMsgAPI.SetIndustry(1,4);
        }


    }
}